package com.bicon.botu.mall.goods.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.bicon.botu.mall.goods.service.IClassficationService;
import com.bicon.botu.mall.goods.vo.ClassficationVo;
import com.bicon.botu.mall.goods.entity.Classfication;
import com.bicon.botu.mall.goods.mapper.ClassficationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品分类
 * @author songxu
 * @since 2017-07-19
 */
@Service
public class ClassficationServiceImpl extends ServiceImpl<ClassficationMapper, Classfication> implements IClassficationService {

    @Autowired
    private ClassficationMapper classficationMapper;    //商品分类Mapper

    @Override
    public List<ClassficationVo> selectAllByParentId(String id) {
        return classficationMapper.selectAllByParentId(id);
    }
}
